const express = require('express');
const app = express();
const path = require('path');
app.listen(3000, () => { console.log('服务器已开启') });

app.get('/', (req, res) => {
    res.sendFile(path.join(__dirname, 'btn.html'));
});
app.get('/index', (req, res) => {
    res.send({ code: '下一页', msg: '成功', cur: req.query })
})